home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 11251 < prev    next >
Mailbox/MIME Entity  |  1996-08-05  |  1.2 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news, ASCII text default
100% checkBytes Printable ASCII default
100% dexmagic PrintFox/Pagefox WEAK default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/news default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 64 61 | 72 77 69 6e 2e 55 43 53 |Path: da|rwin.UCS|
|00000010| 43 2e 45 44 55 21 72 6f | 79 61 6c 74 65 79 0a 46 |C.EDU!ro|yaltey.F|
|00000020| 72 6f 6d 3a 20 48 61 6c | 20 52 6f 79 61 6c 74 65 |rom: Hal| Royalte|
|00000030| 79 20 3c 72 6f 79 61 6c | 74 65 79 40 64 61 72 77 |y <royal|tey@darw|
|00000040| 69 6e 2e 55 43 53 43 2e | 45 44 55 3e 0a 4e 65 77 |in.UCSC.|EDU>.New|
|00000050| 73 67 72 6f 75 70 73 3a | 20 63 6f 6d 70 2e 6c 61 |sgroups:| comp.la|
|00000060| 6e 67 2e 63 0a 53 75 62 | 6a 65 63 74 3a 20 52 65 |ng.c.Sub|ject: Re|
|00000070| 3a 20 42 65 67 69 6e 65 | 72 20 43 20 70 6c 65 61 |: Begine|r C plea|
|00000080| 73 65 20 68 65 6c 70 20 | 6d 65 0a 44 61 74 65 3a |se help |me.Date:|
|00000090| 20 46 72 69 2c 20 32 32 | 20 4d 61 72 20 31 39 39 | Fri, 22| Mar 199|
|000000a0| 36 20 31 32 3a 32 32 3a | 34 37 20 2d 30 38 30 30 |6 12:22:|47 -0800|
|000000b0| 0a 4f 72 67 61 6e 69 7a | 61 74 69 6f 6e 3a 20 55 |.Organiz|ation: U|
|000000c0| 6e 69 76 65 72 73 69 74 | 79 20 6f 66 20 43 61 6c |niversit|y of Cal|
|000000d0| 69 66 6f 72 6e 69 61 2c | 20 53 61 6e 74 61 20 43 |ifornia,| Santa C|
|000000e0| 72 75 7a 0a 4d 65 73 73 | 61 67 65 2d 49 44 3a 20 |ruz.Mess|age-ID: |
|000000f0| 3c 50 69 6e 65 2e 53 4f | 4c 2e 33 2e 39 31 2e 39 |<Pine.SO|L.3.91.9|
|00000100| 36 30 33 32 32 31 32 32 | 30 31 30 2e 31 30 36 37 |60322122|010.1067|
|00000110| 39 42 2d 31 30 30 30 30 | 30 40 64 61 72 77 69 6e |9B-10000|0@darwin|
|00000120| 2e 55 43 53 43 2e 45 44 | 55 3e 0a 52 65 66 65 72 |.UCSC.ED|U>.Refer|
|00000130| 65 6e 63 65 73 3a 20 3c | 44 6f 4c 43 46 78 2e 42 |ences: <|DoLCFx.B|
|00000140| 37 78 2e 30 2e 62 6c 6f | 6f 72 40 74 6f 72 66 72 |7x.0.blo|or@torfr|
|00000150| 65 65 2e 6e 65 74 3e 20 | 3c 34 69 75 6f 65 6a 24 |ee.net> |<4iuoej$|
|00000160| 6c 6d 36 24 31 40 6d 68 | 61 64 65 2e 70 72 6f 64 |lm6$1@mh|ade.prod|
|00000170| 75 63 74 69 6f 6e 2e 63 | 6f 6d 70 75 73 65 72 76 |uction.c|ompuserv|
|00000180| 65 2e 63 6f 6d 3e 0a 4e | 4e 54 50 2d 50 6f 73 74 |e.com>.N|NTP-Post|
|00000190| 69 6e 67 2d 48 6f 73 74 | 3a 20 64 61 72 77 69 6e |ing-Host|: darwin|
|000001a0| 2e 75 63 73 63 2e 65 64 | 75 0a 4d 69 6d 65 2d 56 |.ucsc.ed|u.Mime-V|
|000001b0| 65 72 73 69 6f 6e 3a 20 | 31 2e 30 0a 43 6f 6e 74 |ersion: |1.0.Cont|
|000001c0| 65 6e 74 2d 54 79 70 65 | 3a 20 54 45 58 54 2f 50 |ent-Type|: TEXT/P|
|000001d0| 4c 41 49 4e 3b 20 63 68 | 61 72 73 65 74 3d 55 53 |LAIN; ch|arset=US|
|000001e0| 2d 41 53 43 49 49 0a 49 | 6e 2d 52 65 70 6c 79 2d |-ASCII.I|n-Reply-|
|000001f0| 54 6f 3a 20 3c 34 69 75 | 6f 65 6a 24 6c 6d 36 24 |To: <4iu|oej$lm6$|
|00000200| 31 40 6d 68 61 64 65 2e | 70 72 6f 64 75 63 74 69 |1@mhade.|producti|
|00000210| 6f 6e 2e 63 6f 6d 70 75 | 73 65 72 76 65 2e 63 6f |on.compu|serve.co|
|00000220| 6d 3e 20 0a 0a 0a 0a 4f | 6e 20 32 32 20 4d 61 72 |m> ....O|n 22 Mar|
|00000230| 20 31 39 39 36 2c 20 44 | 61 76 65 20 54 61 79 6c | 1996, D|ave Tayl|
|00000240| 6f 72 20 77 72 6f 74 65 | 3a 0a 0a 3e 20 53 68 65 |or wrote|:..> She|
|00000250| 72 69 66 2c 0a 3e 20 0a | 3e 20 49 6e 20 61 6e 73 |rif,.> .|> In ans|
|00000260| 77 65 72 20 74 6f 20 79 | 6f 75 72 20 27 43 27 20 |wer to y|our 'C' |
|00000270| 71 75 65 73 74 69 6f 6e | 2c 20 43 68 61 6e 67 65 |question|, Change|
|00000280| 20 74 68 65 20 6c 69 6e | 65 3a 0a 3e 20 0a 3e 20 | the lin|e:.> .> |
|00000290| 6e 20 3d 20 28 39 2f 35 | 29 20 09 74 6f 20 09 6e |n = (9/5|) .to .n|
|000002a0| 20 3d 20 28 39 2e 30 2f | 35 2e 30 29 0a 3e 20 0a | = (9.0/|5.0).> .|
|000002b0| 3e 20 79 6f 75 72 20 76 | 65 72 73 69 6f 6e 20 64 |> your v|ersion d|
|000002c0| 69 76 69 64 65 73 20 32 | 20 69 6e 74 65 67 65 72 |ivides 2| integer|
|000002d0| 73 20 28 20 39 20 26 20 | 35 20 29 20 73 6f 20 74 |s ( 9 & |5 ) so t|
|000002e0| 68 65 20 72 65 73 75 6c | 74 20 77 69 6c 6c 20 0a |he resul|t will .|
|000002f0| 3e 20 62 65 20 61 6e 20 | 69 6e 74 65 67 65 72 20 |> be an |integer |
|00000300| 69 2e 65 2e 20 31 2e 20 | 57 68 65 6e 20 79 6f 75 |i.e. 1. |When you|
|00000310| 20 75 73 65 20 70 72 69 | 6e 74 66 28 29 20 74 6f | use pri|ntf() to|
|00000320| 20 64 69 73 70 6c 61 79 | 20 79 6f 75 72 20 66 6c | display| your fl|
|00000330| 6f 61 74 0a 3e 20 77 69 | 74 68 20 74 68 65 20 66 |oat.> wi|th the f|
|00000340| 6f 72 6d 61 74 20 22 31 | 2e 33 66 22 20 74 68 65 |ormat "1|.3f" the|
|00000350| 20 31 20 77 69 6c 6c 20 | 62 65 20 63 6f 6e 76 65 | 1 will |be conve|
|00000360| 72 74 65 64 20 74 6f 20 | 31 2e 30 30 30 20 26 20 |rted to |1.000 & |
|00000370| 74 68 65 6e 0a 3e 20 64 | 69 73 70 6c 61 79 65 64 |then.> d|isplayed|
|00000380| 2e 20 41 73 20 61 20 62 | 61 73 69 63 20 72 75 6c |. As a b|asic rul|
|00000390| 65 20 6f 66 20 74 68 75 | 6d 62 2c 20 74 72 79 20 |e of thu|mb, try |
|000003a0| 74 6f 20 61 76 6f 69 64 | 20 74 79 70 65 20 6d 69 |to avoid| type mi|
|000003b0| 78 69 6e 67 2e 0a 3e 20 | 0a 3e 20 52 6f 62 2e 0a |xing..> |.> Rob..|
|000003c0| 3e 20 28 61 6c 73 6f 20 | 61 74 3a 20 6b 62 79 65 |> (also |at: kbye|
|000003d0| 63 40 77 65 73 74 6d 69 | 6e 73 74 65 72 2e 61 63 |c@westmi|nster.ac|
|000003e0| 2e 75 6b 29 0a 3e 20 0a | 55 68 68 68 20 2e 2e 2e |.uk).> .|Uhhh ...|
|000003f0| 20 61 63 74 75 61 6c 6c | 79 20 74 68 65 20 63 6f | actuall|y the co|
|00000400| 6e 76 65 72 73 69 6f 6e | 20 74 6f 20 66 6c 6f 61 |nversion| to floa|
|00000410| 74 20 69 73 20 64 6f 6e | 65 20 69 6e 20 74 68 65 |t is don|e in the|
|00000420| 20 61 73 73 69 67 6e 6d | 65 6e 74 0a 74 6f 20 27 | assignm|ent.to '|
|00000430| 6e 27 20 28 77 68 69 63 | 68 20 69 73 20 6f 66 20 |n' (whic|h is of |
|00000440| 74 79 70 65 20 66 6c 6f | 61 74 29 2e 20 20 20 54 |type flo|at). T|
|00000450| 68 65 20 70 72 69 6e 74 | 66 20 66 6f 72 6d 61 74 |he print|f format|
|00000460| 20 63 6f 64 65 73 20 61 | 73 73 75 6d 65 20 74 68 | codes a|ssume th|
|00000470| 61 74 0a 74 68 65 69 72 | 20 61 72 67 75 6d 65 6e |at.their| argumen|
|00000480| 74 20 69 73 20 6f 66 20 | 74 68 65 20 61 70 70 72 |t is of |the appr|
|00000490| 6f 70 72 69 61 74 65 20 | 74 79 70 65 2c 20 61 6e |opriate |type, an|
|000004a0| 64 20 77 69 6c 6c 20 2a | 6e 6f 74 2a 20 64 6f 20 |d will *|not* do |
|000004b0| 74 68 69 6e 67 73 0a 6c | 69 6b 65 20 66 6c 6f 61 |things.l|ike floa|
|000004c0| 74 69 6e 67 20 69 6e 74 | 65 67 65 72 73 20 66 6f |ting int|egers fo|
|000004d0| 72 20 79 6f 75 2e 20 0a | |r you. .| |
+--------+-------------------------+-------------------------+--------+--------+